package model;

import java.awt.Graphics;
import java.awt.image.BufferedImage;


public class Sprite {
	
	private BufferedImage image;	
	
	public Sprite(BufferedImage image) {
		this.image = image;
	}	
	
	protected BufferedImage getImage(){
		return this.image;
	}
	
	public int getWidth() {
		return image.getWidth(null);
	}

	public int getHeight() {
		return image.getHeight(null);
	}
	
	public void draw(Graphics g,int x,int y) {
		g.drawImage(image,x,y,null);
	}

	public void setImage(BufferedImage scaledImage)
	{
		this.image = scaledImage;		
	}

	
	
}